package br.com.inovati.linkers.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.com.inovati.linkers.entity.Amizades;
import br.com.inovati.linkers.services.AmizadeServiceRemote;

@Stateless
public class AmizadeServiceImpl implements AmizadeServiceRemote {

	@PersistenceContext(unitName = "linkers")
	private EntityManager em;

	@Override
	public Amizades inserir(Amizades amizade) {
		em.persist(amizade);
		return amizade;
	}
}